<template>

  <swiper class="swiperDetail">
    <swiper-item v-for="(item,index) in  topImages" :key="index">

      <img :src="item" alt="">

    </swiper-item>
  </swiper>

</template>

<script>
  import {
    Swiper,
    SwiperItem
  } from '../../../components/common/swiper'
  export default {
    name: 'swiperDetail',
    props: { // 父辈向子辈传参
      topImages: {
        type: Array,
        default () {
          return []
        }
      }
    },
    components: { // 组件的引用
      Swiper,
      SwiperItem
    },
    data() {
      return {

      }
    },
    methods: { // 方法


    },
    computed: { // 计算属性

    },
    created() { // 实例被创建之后执行代码

    },
    mounted() { // 页面进入时加载内容

    },
    watch: { // 监测变化

    }
  }

</script>
<style scoped>
  .swiperDetail {
    height: 300px;
    overflow: hidden;
  }

</style>
